<div id="connect">
<h1>Connexion</h1><?php
if(!$_SESSION['is_connect']) { 
	if(isset($_POST['submit-connection'])) 
		echo '<span class="error">Identifiants incorrects</span>';
	else
		echo '<br />';?>
         <form method="post" action="<?php echo $_SERVER['REQUEST_URI']; ?>"> 
						<span class="user"><label style="margin-right: 22px;">E-mail:</label><input type="text" name="mail" id="email" size="21" maxlength="255" style="height:13px;font-size:12px;" /></span>
                        <span class="pass"><label class="connect_block">Password:</label><input type="password" name="pass" id="pass" size="21" maxlength="255" style="height:13px;font-size:12px;" /></span>
						<span class="inscrip"><input type="submit" name="submit-connection" id="submit-connection" value="OK" /><a href="index.php?page=inscription" class="deconnexion">S'inscrire</a></span>
						
         </form> 
 <?php } else {?>
		<span class="success">Vous êtes connecté</span>
		<span class="user"><?php echo 'Pseudo : ';?><a class="groupe" href="index.php?page=mon_profil"> <?php echo $_SESSION['pseudo'];?> </a></span><br/>
        <span class="inscrip"><a href="?disconnect" class="deconnexion">Déconnexion</a></span>
 <?php } ?> 
 
 </div>